import regeneratorRuntime from '../utils/runtime'
import {loading,toast} from '../utils/ajaxSetting'
import {wxHttp} from '../ajax/ajax'
//  查看当前是否有正在进行中的
const taskrecordGet = async ({...options})=>{
	return wxHttp({
		name: 'taskrecord',
      	data: {
			$url: 'whether',
			...options.data
		},
		loading: loading(true),
	})
}
const taskrecordSave = async ({...options})=>{
	return wxHttp({
		name: 'taskrecord',
      	data: {
			$url: 'save',
			...options.data
		},
		loading: loading(true),
	})
}
const taskrecordEnd = async ({...options})=>{
	return wxHttp({
		name: 'taskrecord',
      	data: {
			$url: 'end',
			...options.data
		},
		loading: loading(true),
	})
}
const squadidList = async ({...options})=>{
	return wxHttp({
		name: 'taskrecord',
      	data: {
			$url: 'squadidList',
			...options.data
		},
		loading: loading(true),
	})
}

export{
	taskrecordSave,
	taskrecordGet,
	taskrecordEnd,
	squadidList
}
